package com.yuyue.dronesystem.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * DroneController
 */
@RequestMapping(value = "/main")
@Controller
public class DroneController {

    private final String PREFIX = "main/drone/";
    
    @GetMapping(value = "/drones")
    public String list(ModelMap modelMap) {
        return PREFIX+"list";
    }
}